<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="Bookmark" href="favicon.ico" >
	<link rel="Shortcut Icon" href="favicon.ico" />
	<!--[if lt IE 9]>
	<script type="text/javascript" src="/lib/html5.js"></script>
	<script type="text/javascript" src="/lib/respond.min.js"></script>
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="/static/h-ui/css/H-ui.css" />
	<link rel="stylesheet" type="text/css" href="/lib/Hui-iconfont/1.0.9/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="/static/business/css/style.css" />
	<link href="/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
	<!--[if IE 6]>
	<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
	<script>DD_belatedPNG.fix('*');</script>
	<![endif]-->
	<!--/meta 作为公共模版分离出去-->

	<title>人员管理 - 新增人员 </title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<style>
		body{
			background:url(/temp/bg.png);
		}
	</style>
</head>
<body>
	<div class="wap-container">
		<nav class="breadcrumb" style="background-color:#fff;padding: 0 24px">
			首页
			<span class="c-gray en">/</span>
			人员管理
			<span class="c-gray en">/</span>
			新增人员
			<a class="btn btn-success radius f-r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
		</nav>
		<article class="Hui-admin-content clearfix"  style="opacity:0.9;">
			<div class="panel">
				<div class="panel-body">
					<form class="form form-horizontal" id="form-article-add" action="/houseKeeper/add/">
						<input class="btn btn-default radius btn-secondary" type="button" value="个人资料">
						<!--<div class="row clearfix">-->
							<!--<label class="form-label col-xs-4 col-sm-2">生活照：</label>-->
							<!--<div class="form-controls col-xs-8 col-sm-9">-->
								<!--<span class="btn-upload">-->
									<!--<a href="javascript:void();" class="btn btn-primary radius btn-upload"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>-->
									<!--<input type="file" multiple name="file" id="1" class="input-file">-->
								<!--</span>-->
							<!--</div>-->
						<!--</div>-->
						<input type="hidden"  name="workpic" id="workpic" >
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>工作照：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<div class="uploader-thum-container">
									<div id="fileList" class="uploader-list"></div>
									<div id="filePicker">选择工作照</div>
								</div>
							</div>
						</div>


						<input type="hidden"  name="lifepic" id="lifepic" >
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>生活照：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<div class="uploader-thum-container">
									<div id="lifefileList" class="uploader-list"></div>
									<div id="liffilePicker">选择生活照</div>
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>姓名：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" class="input-text" value="" placeholder="" id="name" name="name">
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>身高：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" class="input-text" value="" placeholder="" id="height" name="height">
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">优质：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
								<div class="check-box">
									<input type="checkbox" id="highGrade" value="1" name="highgrade" checked>
									<label for="highGrade">&nbsp;</label>
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>体重：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" class="input-text" value="" placeholder="" id="weight" name="weight">
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>优势介绍：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<textarea cols="" rows="" class="textarea textarea-article"  placeholder="介绍阿姨的优势...最少输入10个字符" id="presentation" name="presentation"></textarea>
							</div>
						</div>
						<input class="btn btn-default radius btn-secondary" type="button" value="基本信息">

						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>专业：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
								<div class="check-box">
									<input type="checkbox" id="professional-1" value="1" name="professional">
									<label for="professional-1">育婴师</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="professional-2" value="2" name="professional">
									<label for="professional-2">月嫂</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="professional-3" value="3" name="professional">
									<label for="professional-3">家务助理</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="professional-4" value="4" name="professional">
									<label for="professional-4">全能阿姨</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="professional-5" value="5" name="professional">
									<label for="professional-5">老年看护</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="professional-6" value="6" name="professional">
									<label for="professional-6">涉外家政</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="professional-7" value="7" name="professional">
									<label for="professional-7">家庭司机</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="professional-8" value="8" name="professional">
									<label for="professional-8">儿童家教</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="professional-9" value="9" name="professional">
									<label for="professional-9">家庭厨师</label>
								</div>
							</div>
						</div>

						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>经验：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
								<div class="radio-box">
									<input type="radio" id="experience-1" value="1" name="experience" checked>
									<label for="experience-1">新手</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="experience-2" value="2" name="experience" >
									<label for="experience-2">3年以下</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="experience-3" value="3" name="experience" >
									<label for="experience-3">3-5年</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="experience-4" value="4" name="experience" >
									<label for="experience-4">5年以上</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="experience-5" value="5" name="experience" >
									<label for="experience-5">10年以上</label>
								</div>
							</div>
						</div>


						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>性别：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<span class="select-box">
									<select name="sex" class="select">
										<option value="1">男</option>
										<option value="2">女</option>
									</select>
								</span>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">生日：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" id="birthday" class="input-text datetimepicker-input" name="birthday">
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>生肖：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<span class="select-box">
									<select name="zodiac" class="select">
										<option value="鼠" selected>鼠</option>
										<option value="牛">牛</option>
										<option value="虎">虎</option>
										<option value="兔">兔</option>
										<option value="龙">龙</option>
										<option value="蛇">蛇</option>
										<option value="马">马</option>
										<option value="羊">羊</option>
										<option value="猴">猴</option>
										<option value="鸡">鸡</option>
										<option value="狗">狗</option>
										<option value="猪">猪</option>
									</select>
								</span>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>籍贯：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
							<div class="radio-box">
								<input type="radio" id="nativePlace-1" value="1" name="nativeplace">
								<label for="nativePlace-1">北京市</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-2" value="2" name="nativeplace">
								<label for="nativePlace-2">天津市</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-3" value="3" name="nativeplace">
								<label for="nativePlace-3">上海市</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-4" value="4" name="nativeplace">
								<label for="nativePlace-4">重庆市</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-5" value="5" name="nativeplace">
								<label for="nativePlace-5">黑龙江</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-6" value="6" name="nativeplace">
								<label for="nativePlace-6">吉林省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-7" value="7" name="nativeplace">
								<label for="nativePlace-7">辽宁省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-8" value="8" name="nativeplace">
								<label for="nativePlace-8">河北省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-9" value="9" name="nativeplace">
								<label for="nativePlace-9">河南省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-10" value="10" name="nativeplace" >
								<label for="nativePlace-10">山东省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-11" value="11" name="nativeplace">
								<label for="nativePlace-11">山西省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-12" value="12" name="nativeplace">
								<label for="nativePlace-12">安徽省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-13" value="13" name="nativeplace">
								<label for="nativePlace-13">江西省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-14" value="14" name="nativeplace">
								<label for="nativePlace-14">江苏省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-15" value="15" name="nativeplace">
								<label for="nativePlace-15">浙江省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-16" value="16" name="nativeplace">
								<label for="nativePlace-16">福建省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-17" value="17" name="nativeplace">
								<label for="nativePlace-17">广东省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-18" value="18" name="nativeplace">
								<label for="nativePlace-18">湖南省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-19" value="19" name="nativeplace">
								<label for="nativePlace-19">湖北省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-20" value="20" name="nativeplace">
								<label for="nativePlace-20">海南省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-21" value="21" name="nativeplace">
								<label for="nativePlace-21">云南省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-22" value="22" name="nativeplace" >
								<label for="nativePlace-22">贵州省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-23" value="23" name="nativeplace">
								<label for="nativePlace-23">四川省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-24" value="24" name="nativeplace">
								<label for="nativePlace-24">青海省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-25" value="25" name="nativeplace">
								<label for="nativePlace-25">甘肃省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-26" value="26" name="nativeplace">
								<label for="nativePlace-26">陕西省</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-27" value="27" name="nativeplace">
								<label for="nativePlace-27">内蒙古</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-28" value="28" name="nativeplace">
								<label for="nativePlace-28">新疆</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-29" value="29" name="nativeplace">
								<label for="nativePlace-29">广西</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-30" value="30" name="nativeplace">
								<label for="nativePlace-30">宁夏</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-31" value="31" name="nativeplace">
								<label for="nativePlace-31">西藏</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-32" value="32" name="nativeplace">
								<label for="nativePlace-32">香港</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-33" value="33" name="nativeplace">
								<label for="nativePlace-33">澳门</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-34" value="34" name="nativeplace">
								<label for="nativePlace-34">台湾</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-35" value="35" name="nativeplace">
								<label for="nativePlace-35">海外地区</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-36" value="36" name="nativeplace">
								<label for="nativePlace-36">菲律宾</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-37" value="37" name="nativeplace">
								<label for="nativePlace-37">印尼</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-38" value="38" name="nativeplace">
								<label for="nativePlace-38">缅甸</label>
							</div>
							<div class="radio-box">
								<input type="radio" id="nativePlace-39" value="39" name="nativeplace">
								<label for="nativePlace-39">泰国</label>
							</div>
						</div>

						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>学历：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
								<div class="radio-box">
									<input type="radio" id="education-1" value="1" name="education" checked>
									<label for="education-1">初中</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="education-2" value="2" name="education">
									<label for="education-2">高中</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="education-3" value="3" name="education">
									<label for="education-3">中专</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="education-4" value="4" name="education">
									<label for="education-4">大专</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="education-5" value="5" name="education">
									<label for="education-5">本科</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="education-6" value="6" name="education">
									<label for="education-6">本科以上</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="education-7" value="7" name="education">
									<label for="education-7">其他</label>
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>食宿：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
								<div class="radio-box">
									<input type="radio" id="boardAndLodging-1" value="1" name="boardandlodging" checked>
									<label for="boardAndLodging-1">不限</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="boardAndLodging-2" value="2" name="boardandlodging">
									<label for="boardAndLodging-2">可住家</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="boardAndLodging-3" value="3" name="boardandlodging">
									<label for="boardAndLodging-3">不住家</label>
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>语言：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
								<div class="check-box">
									<input type="checkbox" id="language-1" value="1" name="language" checked>
									<label for="language-1">普通话</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="language-2" value="2" name="language">
									<label for="language-2">四川话</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="language-3" value="3" name="language">
									<label for="language-3">上海话</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="language-4" value="4" name="language">
									<label for="language-4">东北话</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="language-5" value="5" name="language">
									<label for="language-5">广东话</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="language-6" value="6" name="language">
									<label for="language-6">客家话</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="language-7" value="7" name="language">
									<label for="language-7">闽南话</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="language-8" value="8" name="language">
									<label for="language-8">英语</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="language-9" value="9" name="language">
									<label for="language-9">日语</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="language-10" value="10" name="language">
									<label for="language-10">其他外语</label>
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>做饭：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
								<div class="check-box">
									<input type="checkbox" id="cook" value="1" name="cook" checked>
									<label for="cook">上海菜</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-1" value="2" name="cook">
									<label for="cook-1">浙江菜</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-2" value="3" name="cook">
									<label for="cook-2">川菜</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-3" value="4" name="cook">
									<label for="cook-3">粤菜</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-4" value="5" name="cook">
									<label for="cook-4">江苏菜</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-5" value="6" name="cook">
									<label for="cook-5">东北菜</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-6" value="7" name="cook">
									<label for="cook-6">鲁菜</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-7" value="8" name="cook">
									<label for="cook-7">潮州菜</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-8" value="9" name="cook">
									<label for="cook-8">湘菜</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-9" value="10" name="cook">
									<label for="cook-9">面食</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-10" value="11" name="cook">
									<label for="cook-10">西餐</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-11" value="12" name="cook">
									<label for="cook-11">海鲜</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-12" value="13" name="cook">
									<label for="cook-12">煲汤</label>
								</div>
								<div class="check-box">
									<input type="checkbox" id="cook-13" value="14" name="cook">
									<label for="cook-13">其他</label>
								</div>
							</div>
						</div>
						<input class="btn btn-default radius btn-secondary" type="button" value="技能专长">

						<div class="row clearfix ">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>技能标签：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<div id="Huitags-demo1" >

								</div>
							</div>

						</div>
						<input class="btn btn-default radius btn-secondary" type="button" value="求职信息">
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>工作类型：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
								<div class="radio-box">
									<input type="radio" id="workType-1" value="1" name="worktype" checked>
									<label for="workType-1">全职</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="workType-2" value="2" name="worktype">
									<label for="workType-2">兼职</label>
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>工作时间：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
								<div class="radio-box">
									<input type="radio" id="workTime-1" value="1" name="worktime" checked>
									<label for="workTime-1">全天24小时</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="workTime-2" value="2" name="worktime">
									<label for="workTime-2">07:00-19:00</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="workTime-3" value="3" name="worktime">
									<label for="workTime-3">07:00-12:00</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="workTime-4" value="4" name="worktime">
									<label for="workTime-4">12:00-14:00</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="workTime-5" value="5" name="worktime">
									<label for="workTime-5">12:00-19:00</label>
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>工作状态：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
								<div class="radio-box">
									<input type="radio" id="workState-1" value="1" name="workstate" checked>
									<label for="workState-1">待岗</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="workState-2" value="2" name="workstate">
									<label for="workState-2">上岗</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="workState-3" value="3" name="workstate">
									<label for="workState-3">培训中</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="workState-4" value="4" name="workstate">
									<label for="workState-4">已离职</label>
								</div>
								<div class="radio-box">
									<input type="radio" id="workState-5" value="5" name="workstate">
									<label for="workState-5">黑名单</label>
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>工资待遇：</label>
							<div class="form-controls col-xs-4 col-sm-8" style="max-width: 400px;">
								<div class="f-l">
									<input type="text" name="salarystart" id="salarystart" placeholder="请输入薪资" class="input-text" />
								</div>
								<span class="pipe">-----</span>
								<div class="f-r">
									<input type="text" name="salaryend" id="salaryend" placeholder="请输入薪资" class="input-text" />
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>工作区域：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<textarea cols="" rows="" class="textarea textarea-article"  placeholder="区域之间可用空格区分" id="workarea" name="workarea"></textarea>
							</div>
						</div>
						<br/>
						<div class="line"></div>
						<br/>

						<input class="btn btn-default radius btn-secondary f-l" type="button" value="工作经历">
						<input onclick="workexPerience_add();" class="btn btn-default radius btn-secondary f-r" type="button" value="添加工作经历">
						<br/>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">时间：</label>
							<div class="form-controls col-xs-4 col-sm-8" style="max-width: 400px;">
								<div class="f-l">
									<input type="text" name="worktimestart" id="worktimestart" placeholder="请输开始时间" class="input-text" />
								</div>
								<span class="pipe">-----</span>
								<div class="f-r">
									<input type="text" name="worktimeend" id="worktimeend" placeholder="请输入结束时间" class="input-text" />
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">工作经历：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<textarea cols="" rows="" class="textarea textarea-article"  placeholder="服务过的家庭(自述)" name="content" id="content"></textarea>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">工作经历：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<table  class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
										<tr class="text-c">
											<th width="8">起始时间</th>
											<th width="8">终止时间</th>
											<th width="80">工作内容</th>
											<th width="2">操作</th>
										</tr>
									</thead>
									<tbody class="getData-list" data-currPage='1' id="worktData-list">

									</tbody>
								</table>
							</div>
						</div>
						<input type="hidden" name="workexperiencedata" id="worktData" class="input-text" />
						<br/>
						<div class="line"></div>
						<br/>
						<input class="btn btn-default radius btn-secondary f-l" type="button" value="培训经历">
						<input onclick="trainExperience_add();" class="btn btn-default radius btn-secondary f-r" type="button" value="添加培训经历">
						<br/>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">时间：</label>
							<div class="form-controls col-xs-4 col-sm-8" style="max-width: 400px;">
								<div class="f-l">
									<input type="text" name="traintimestart" id="traintimestart" placeholder="请输开始时间" class="input-text" />
								</div>
								<span class="pipe">-----</span>
								<div class="f-r">
									<input type="text" name="traintimeend" id="traintimeend" placeholder="请输入结束时间" class="input-text" />
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">课程名称：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" class="input-text" value="" placeholder="" id="curriculumname" name="curriculumname">
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">培训机构：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" class="input-text" value="" placeholder="" id="traininginstitution" name="traininginstitution">
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">培训内容：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<textarea cols="" rows="" class="textarea textarea-article"  placeholder="" name="traincontent" id="traincontent"></textarea>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">考评情况：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<textarea cols="" rows="" class="textarea textarea-article"  placeholder="" name="checkandevaluate" id="checkandevaluate"></textarea>
							</div>
						</div>

						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">培训情况：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<table class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
									<tr class="text-c">
										<th width="18">课程名称</th>
										<th width="18">开始时间</th>
										<th width="18">结束时间</th>
										<th width="18">培训机构</th>
										<th width="18">培训内容</th>
										<th width="80">考评情况</th>
										<th width="5">操作</th>
									</tr>
									</thead>
									<tbody class="getData-list" data-currPage='1'  id="trainData-list">
									</tbody>
								</table>
							</div>
						</div>
						<input type="hidden" name="trainexperiencedata" id="trainData" class="input-text" />
						<br/>
						<div class="line"></div>
						<br/>
						<input class="btn btn-default radius btn-secondary f-l" type="button" value="联系方式">
						<input onclick="emergency_add();" class="btn btn-default radius btn-secondary f-r" type="button" value="添加联系方式">
						<br/>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>电话1：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" class="input-text" value="" placeholder="" id="phone1" name="phone1">
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">电话2：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" class="input-text" value="" placeholder="" id="phone2" name="phone2">
							</div>
						</div>

						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">紧急联系人：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" class="input-text" value="" placeholder="" id="emergencyname" name="emergencyname">
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">紧急联系人电话：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" class="input-text" value="" placeholder="" id="emergencyphone" name="emergencyphone">
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">紧急联系人：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<table  class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
									<tr class="text-c">
										<th width="80">紧急联系人</th>
										<th width="80">联系人电话</th>
										<th width="10">操作</th>
									</tr>
									</thead>
									<tbody class="getData-list" data-currPage='1' id="emergencyData-list">

									</tbody>
								</table>
							</div>
						</div>
						<input type="hidden" name="emergencydata" id="emergencyData" class="input-text" />
						<br/>
						<div class="line"></div>
						<br/>
						<input class="btn btn-default radius btn-secondary f-l" type="button" value="资格证书">
						<input onclick="certificate_add();" class="btn btn-default radius btn-secondary f-r" type="button" value="添加资格证书">
						<br/>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">资格证书：</label>
							<div class="form-controls col-xs-8 col-sm-9 skin-minimal">
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-1" value="1" name="certificate">
									<label for="certificate-1">身份证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-2" value="2" name="certificate">
									<label for="certificate-2">健康证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-3" value="3" name="certificate">
									<label for="certificate-3">催乳证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-4" value="4" name="certificate">
									<label for="certificate-4">小儿推拿证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-5" value="5" name="certificate">
									<label for="certificate-5">月子餐证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-6" value="6" name="certificate">
									<label for="certificate-6">产后康复正</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-7" value="7" name="certificate">
									<label for="certificate-7">其他国家签证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-8" value="8" name="certificate">
									<label for="certificate-8">母婴护理正</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-9" value="9" name="certificate">
									<label for="certificate-9">初级育婴师证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-10" value="10" name="certificate">
									<label for="certificate-10">高级育婴师证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-11" value="11" name="certificate">
									<label for="certificate-11">早教证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-12" value="12" name="certificate">
									<label for="certificate-12">幼师证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-13" value="13" name="certificate">
									<label for="certificate-13">教师证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-14" value="14" name="certificate">
									<label for="certificate-14">驾驶证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-15" value="15" name="certificate">
									<label for="certificate-15">管家证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-16" value="16" name="certificate">
									<label for="certificate-16">厨师证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-17" value="17" name="certificate">
									<label for="certificate-17">公共营养师证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-18" value="18" name="certificate">
									<label for="certificate-18">护士证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-19" value="19" name="certificate">
									<label for="certificate-19">护工证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-20" value="20" name="certificate">
									<label for="certificate-20">养老护理证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-21" value="21" name="certificate">
									<label for="certificate-21">护照</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-22" value="22" name="certificate">
									<label for="certificate-22">港澳通行证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-23" value="23" name="certificate">
									<label for="certificate-23">美国签证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-24" value="24" name="certificate">
									<label for="certificate-24">英国签证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-25" value="25" name="certificate">
									<label for="certificate-25">澳大利亚其签证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-26" value="26" name="certificate">
									<label for="certificate-26">加拿大签证</label>
								</div>
								<div class="check-box col-xs-2">
									<input type="checkbox" id="certificate-27" value="27" name="certificate">
									<label for="certificate-27">日本签证</label>
								</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">证书名称：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" class="input-text" value="" placeholder="" id="certificatename" >
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">证书图片：</label>
							<div class="form-controls col-xs-8 col-sm-9">
										<div class="uploader-thum-container">
											<div id="certificateFileList" class="uploader-list"></div>
											<div id="certificateFilePicker">选择证书</div>
										</div>
							</div>
						</div>
						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">证书图片：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<table  class="table table-border table-bordered table-bg table-hover table-sort">
									<thead>
									<tr class="text-c">
										<th width="80">证书名称</th>
										<th width="80" class="visible-print-block">证书图片</th>
										<th width="80" >证书图片</th>
										<th width="10">操作</th>
									</tr>
									</thead>
									<tbody class="getData-list" data-currPage='1' id="certificateData-list">

									</tbody>
								</table>
							</div>
						</div>
						<input type="hidden" name="certificatepic" id="certificatepic" class="input-text" />
						<input type="hidden" name="certificatedata" id="certificateData" class="input-text" />
						<br/>
						<div class="line"></div>
						<br/>
						<input class="btn btn-default radius btn-secondary f-l" type="button" value="其他资料">
						<br/>
						<input type="hidden"  name="idcardpic" id="idcardpic" >
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>身份证：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<div class="uploader-thum-container">
									<div id="idcardpicList" class="uploader-list"></div>
									<div id="idcardpicPicker">选择身份证正面</div>
								</div>
							</div>
						</div>

						<div class="row clearfix">
							<label class="form-label col-xs-4 col-sm-2">工号：</label>
							<div class="form-controls col-xs-8 col-sm-9">
								<input type="text" class="input-text" th:value="${jobnumber}" placeholder=""  disabled>
								<input type="hidden" class="input-text" th:value="${jobnumber}" placeholder="" id="jobnumber" name="jobnumber" >
							</div>
						</div>


						<div class="row clearfix">
							<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
								<button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 提交</button>
								<button onClick="close_layer();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
							</div>
						</div>


					</form>
		    </div>
	    </div>
		</article>
	</div>
	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript" src="/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="/lib/layer/3.1.1/layer.js"></script>
	<script type="text/javascript" src="/static/h-ui/js/H-ui.js"></script>
	<!--/_footer /作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript" src="/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
	<script type="text/javascript" src="/lib/jquery.validation/1.14.0/validate-methods.js"></script>
	<script type="text/javascript" src="/lib/jquery.validation/1.14.0/messages_zh.js"></script>
	<script type="text/javascript" src="/lib/webuploader/0.1.5/webuploader.min.js"></script>
	<script type="text/javascript" src="/lib/ueditor/1.4.3/ueditor.config.js"></script>
	<script type="text/javascript" src="/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
	<script type="text/javascript" src="/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript" src="/static/business/js/main.js"></script>
	<script type="text/javascript">
        $.fn.serializeObject1 = function () {
            var o = {};
            var a = this.serializeArray();
            $.each(a, function () {
                if (o[this.name]) {
                    if (!o[this.name].push) {
                        o[this.name] = [o[this.name]];
                    }
                    o[this.name].push(this.value || '');
                } else {
                    o[this.name] = this.value || '';
                }
            });
            // console.log(o);
            return o;
        };
        var data = $('#dishuiForm').serializeObject1();
        data.taskCode = $('#taskCode').val();

        function submit(){
		}
		$(function(){
            $("#Huitags-demo1").Huitags(
                {
                    value:'',
                    maxlength : 20,
                    number : 5,
                    tagsDefault : ["外籍家庭经历","英语口语好","幼教经历","经验丰富","本科学历","可住家","可带睡","大专学历","母婴护理师证","初级育婴师证","中级育婴师证"
                        ,"高级育婴师证","催乳师证","高级催乳师证","小儿推拿师证","早教师证","厨师证","月子餐证","产后看护证","高级产后看护证","英语4级证","高级管家证"],
                }
            );
			// 复选框样式
			$('.skin-minimal input').iCheck({
				checkboxClass: 'icheckbox-blue',
				radioClass: 'iradio-blue',
				increaseArea: '20%'
			});
			// 是否评论
			$('#articleComment').on('ifChecked', function(event){
				$("#comment-datetime-start,#comment-datetime-end").attr("disabled",false).removeClass("disabled");
			});
			$('#articleComment').on('ifUnchecked', function(event){
				$("#comment-datetime-start,#comment-datetime-end").attr("disabled",true).addClass("disabled");
			});
			// 设置生日
            $("#birthday").datetimepicker({
                format: 'yyyy-mm-dd',
                minView: "month",
                todayBtn:  1,
                autoclose: 1,
                endDate : new Date(),
            }).on('changeDate', function(event) {
                event.preventDefault();
                event.stopPropagation();
            });

            $("#traintimestart").datetimepicker({
                format: 'yyyy-mm-dd',
                minView: "month",
                todayBtn:  1,
                autoclose: 1,
                endDate : new Date(),
            }).on('changeDate', function(event) {
                event.preventDefault();
                event.stopPropagation();
                var endTime = event.date;
                $("#traintimeend").datetimepicker('setEndDate',endTime);
            });

            $("#traintimeend").datetimepicker({
                format: 'yyyy-mm-dd',
                minView: "month",
                todayBtn:  1,
                autoclose: 1,
                endDate : new Date(),
            }).on('changeDate', function(event) {
                event.preventDefault();
                event.stopPropagation();
                var endTime = event.date;
                $('#traintimestart').datetimepicker('setEndDate',endTime);
            });

            $("#worktimestart").datetimepicker({
                format: 'yyyy-mm-dd',
                minView: "month",
                todayBtn:  1,
                autoclose: 1,
                endDate : new Date(),
            }).on('changeDate', function(event) {
                event.preventDefault();
                event.stopPropagation();
                var startTime = event.date;
                $("#worktimeend").datetimepicker('setStartDate',startTime);
            });

            $("#worktimeend").datetimepicker({
                format: 'yyyy-mm-dd',
                minView: "month",
                todayBtn:  1,
                autoclose: 1,
                endDate : new Date(),
            }).on('changeDate', function(event) {
                event.preventDefault();
                event.stopPropagation();
                var endTime = event.date;
                $('#worktimestart').datetimepicker('setEndDate',endTime);
            });

			// 文章摘要
			$(".textarea-article").Huitextarealength({
				minlength: 10,
				maxlength: 500
			});

			// 表单提交验证
			$("#form-article-add").validate({
				rules: {
                    name: {
                        required: true,
                    },
                    height: {
                        required: true,
                    },
                    weight: {
                        required: true,
                    },
                    presentation: {
                        required: true,
                    },
                    professional: {
                        required: true,
                    },
                    experience: {
                        required: true,
                    },
                    sex: {
                        required: true,
                    },
                    birthday: {
                        required: true,
                    },
					zodiac: {
                        required: true,
                    },
                    nativeplace: {
                        required: true,
                    },
                    education: {
                        required: true,
                    },
                    boardandlodging: {
                        required: true,
                    },
                    language: {
                        required: true,
                    },
                    cook: {
                        required: true,
                    },
                    worktype: {
                        required: true,
                    },
                    worktime: {
                        required: true,
                    },
                    workstate: {
                        required: true,
                    },
                    salarystart: {
                        required: true,
                    },
                    salaryend: {
                        required: true,
                    },
                    workarea: {
                        required: true,
                    },
                    phone1: {
                        required: true,
                        isPhone:true,
                    },
					idcardpic: {//身份证
                        required: true,
                    },
                    workpic: {//工作照
                        equired: true,
                    },
                    lifepic: {//工作照
                        equired: true,
                    },

				},
				onkeyup: true,
				focusCleanup: true,
				success: "valid",
				submitHandler: function(form){
				    var workpic=$('#workpic').val();
				    var lifepic=$('#lifepic').val();
				    var name=$('#name').val();
				    var height=$('#height').val();
				    var weight=$('#weight').val();
				    var presentation=$('#presentation').val();
				    var professional=$('#professional').val();
				    var experience=$('#experience').val();
				    var sex=$('#sex').val();
				    var birthday=$('#birthday').val();
				    var zodiac=$('#zodiac').val();
				    var nativeplace=$('#nativeplace').val();
				    var education=$('#education').val();
				    var boardandlodging=$('#boardandlodging').val();
				    var language=$('#language').val();
				    var cook=$('#cook').val();
				    var worktype=$('#worktype').val();
				    var worktime=$('#worktime').val();
                    var workstate=$('#workstate').val();
                    var salarystart=$('#salarystart').val();
                    var salaryend=$('#salaryend').val();
                    var workarea=$('#workarea').val();
                    var phone1=$('#phone1').val();
                    var idcardpic=$('#idcardpic').val();
                    if(workpic==""||workpic==null||workpic=='undefind'){
                        layer.msg('工作照不能为空!',{icon:2,time:1000});
                        return;
                    }
                    if(lifepic==""||lifepic==null||lifepic=='undefind'){
                        layer.msg('生活照不能为空!',{icon:2,time:1000});
                        return;
                    }
                    if(name==""||name==null||name=='undefind'){
                        layer.msg('姓名不能为空!',{icon:2,time:1000});
                        return;
                    }
                    if(height==""||height==null||height=='undefind'){
                        layer.msg('身高不能为空!',{icon:2,time:1000});
                        return;
                    }

                    if(weight==""||weight==null||weight=='undefind'){
                        layer.msg('体重不能为空!',{icon:2,time:1000});
                        return;
                    }
                    if(presentation==""||presentation==null||presentation=='undefind'){
                        layer.msg('优势介绍不能为空!',{icon:2,time:1000});
                        return;
                    }
                    // if(experience==""||experience==null||experience=='undefind'){
                    //     layer.msg('经验不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    // if(professional==""||professional==null||professional=='undefind'){
                    //     layer.msg('专业不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    // if(sex==""||sex==null||sex=='undefind'){
                    //     layer.msg('性别不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    if(birthday==""||birthday==null||birthday=='undefind'){
                        layer.msg('生日不能为空!',{icon:2,time:1000});
                        return;
                    }
                    // if(zodiac==""||zodiac==null||zodiac=='undefind'){
                    //     layer.msg('生肖不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    // if(nativeplace==""||nativeplace==null||nativeplace=='undefind'){
                    //     layer.msg('籍贯不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    // if(boardandlodging==""||boardandlodging==null||boardandlodging=='undefind'){
                    //     layer.msg('食宿不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    // if(education==""||education==null||education=='undefind'){
                    //     layer.msg('学历不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    // if(language==""||language==null||language=='undefind'){
                    //     layer.msg('语言不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    // if(cook==""||cook==null||cook=='undefind'){
                    //     layer.msg('做饭不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    // if(worktype==""||worktype==null||worktype=='undefind'){
                    //     layer.msg('工作类型不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    // if(worktime==""||worktime==null||worktime=='undefind'){
                    //     layer.msg('工作时间不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    // if(workstate==""||workstate==null||workstate=='undefind'){
                    //     layer.msg('工作状态不能为空!',{icon:2,time:1000});
                    //     return;
                    // }
                    if(salarystart==""||salarystart==null||salarystart=='undefind'){
                        layer.msg('请输入起始薪资!',{icon:2,time:1000});
                        return;
                    }
                    if(salaryend==""||salaryend==null||salaryend=='undefind'){
                        layer.msg('请输入终止薪资!',{icon:2,time:1000});
                        return;
                    }
                    if(workarea==""||workarea==null||workarea=='undefind'){
                        layer.msg('请输入工作区域!',{icon:2,time:1000});
                        return;
                    }
                    if(phone1==""||phone1==null||phone1=='undefind'){
                        layer.msg('请输入联系电话!',{icon:2,time:1000});
                        return;
                    }
					if(idcardpic==""||idcardpic==null||idcardpic=='undefind'){
                        layer.msg('身份证不能为空!',{icon:2,time:1000});
                        return;
					}
					$(form).ajaxSubmit();
                    var index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                    setTimeout(function () {
                        window.parent.location.reload();

					}, 2000);

				}
			});
            $list = $("#fileList"),
                $btn = $("#btn-star"),
                state = "pending",
                uploader = WebUploader.create({
                    auto: true,
                    swf: '/lib/webuploader/0.1.5/Uploader.swf',

                    // 文件接收服务端。
                    server: '/fileUpload/',

                    // 选择文件的按钮。可选。
                    // 内部根据当前运行是创建，可能是input元素，也可能是flash.
                    pick: '#filePicker',

                    // 不压缩image, 默认如果是jpeg，文件上传前会压缩一把再上传！
                    resize: false,
                    // 只允许选择图片文件。
                    accept: {
                        title: 'Images',
                        extensions: 'gif,jpg,jpeg,bmp,png',
                        mimeTypes: 'image/*'
                    }
                });
            uploader.on( 'fileQueued', function( file ) {

            });
            // 文件上传过程中创建进度条实时显示。
            uploader.on( 'uploadProgress', function( file, percentage ) {
                var $li = $( '#'+file.id ),
                    $percent = $li.find('.progress-box .sr-only');

                // 避免重复创建
                if ( !$percent.length ) {
                    $percent = $('<div class="progress-box"><span class="progress-bar radius"><span class="sr-only" style="width:0%"></span></span></div>').appendTo( $li ).find('.sr-only');
                }
                $li.find(".state").text("上传中");
                $percent.css( 'width', percentage * 100 + '%' );
            });

            // 文件上传成功，给item添加成功class, 用样式标记上传成功。
            uploader.on( 'uploadSuccess', function( file ,response) {
                console.log("服务端返回url:"+response._raw);
                $('#workpic').val(response._raw);
                $( '#'+file.id ).addClass('upload-state-success').find(".state").text("");
            });

            // 文件上传失败，显示上传出错。
            uploader.on( 'uploadError', function( file ) {
                $( '#'+file.id ).addClass('upload-state-error').find(".state").text("上传出错");
            });

            // 完成上传完了，成功或者失败，先删除进度条。
            uploader.on( 'uploadComplete', function( file ) {
                $("#workpicoldimg").fadeOut();

                $("#fileList").find('#WU_FILE_0').fadeOut();
                $("#fileList").find("#WU_FILE_1").fadeOut();
                $("#fileList").find("#WU_FILE_2").fadeOut();
                $("#fileList").find("#WU_FILE_3").fadeOut();
                $("#fileList").find("#WU_FILE_4").fadeOut();
                $("#fileList").find("#WU_FILE_5").fadeOut();
                $("#fileList").find("#WU_FILE_6").fadeOut();
                $("#fileList").find("#WU_FILE_7").fadeOut();

                var $li = $(
                    '<div id="' + file.id + '" class="item">' +
                    '<div class="pic-box"><img></div>'+
                    '</div>'
                    ),
                    $img = $li.find('img');
                $list.append( $li );

                // 创建缩略图
                // 如果为非图片文件，可以不用调用此方法。
                // thumbnailWidth x thumbnailHeight 为 100 x 100
                ratio = window.devicePixelRatio || 1,
                    thumbnailWidth = 110 * ratio,
                    thumbnailHeight = 110 * ratio,
                    uploader.makeThumb( file, function( error, src ) {
                        if ( error ) {
                            $img.replaceWith('<span>不能预览</span>');
                            return;
                        }

                        $img.attr( 'src', src );
                    }, thumbnailWidth, thumbnailHeight );

                $( '#'+file.id ).find('.progress-box').fadeOut();
            });
            uploader.on('all', function (type) {
                if (type === 'startUpload') {
                    state = 'uploading';
                } else if (type === 'stopUpload') {
                    state = 'paused';
                } else if (type === 'uploadFinished') {
                    state = 'done';
                }

                if (state === 'uploading') {
                    $btn.text('暂停上传');
                } else {
                    $btn.text('开始上传');
                }
            });

            $btn.on('click', function () {
                if (state === 'uploading') {
                    uploader.stop();
                } else {
                    uploader.upload();
                }
            });

            //--------------------------------------------------生活照上传-----------------------
            lifestate = "pending",
                lifeuploader = WebUploader.create({
                    auto: true,
                    swf: '/lib/webuploader/0.1.5/Uploader.swf',

                    // 文件接收服务端。
                    server: '/fileUpload/',

                    // 选择文件的按钮。可选。
                    // 内部根据当前运行是创建，可能是input元素，也可能是flash.
                    pick: '#liffilePicker',

                    // 不压缩image, 默认如果是jpeg，文件上传前会压缩一把再上传！
                    resize: false,
                    // 只允许选择图片文件。
                    accept: {
                        title: 'Images',
                        extensions: 'gif,jpg,jpeg,bmp,png',
                        mimeTypes: 'image/*'
                    }
                });
            lifeuploader.on( 'fileQueued', function( file ) {

            });
            // 文件上传过程中创建进度条实时显示。
            lifeuploader.on( 'uploadProgress', function( file, percentage ) {
                var $li = $( '#'+file.id ),
                    $percent = $li.find('.progress-box .sr-only');

                // 避免重复创建
                if ( !$percent.length ) {
                    $percent = $('<div class="progress-box"><span class="progress-bar radius"><span class="sr-only" style="width:0%"></span></span></div>').appendTo( $li ).find('.sr-only');
                }
                $li.find(".state").text("上传中");
                $percent.css( 'width', percentage * 100 + '%' );
            });

            // 文件上传成功，给item添加成功class, 用样式标记上传成功。
            lifeuploader.on( 'uploadSuccess', function( file ,response) {
                console.log("服务端返回url:"+response._raw);
                $('#lifepic').val(response._raw);
                $( '#'+file.id ).addClass('upload-state-success').find(".state").text("");
            });

            // 文件上传失败，显示上传出错。
            lifeuploader.on( 'uploadError', function( file ) {
                $( '#'+file.id ).addClass('upload-state-error').find(".state").text("上传出错");
            });

            // 完成上传完了，成功或者失败，先删除进度条。
            lifeuploader.on( 'uploadComplete', function( file ) {
                $("#lifepicoldimg").fadeOut();

                $("#lifefileList").find("#WU_FILE_0").fadeOut();
                $("#lifefileList").find("#WU_FILE_1").fadeOut();
                $("#lifefileList").find("#WU_FILE_2").fadeOut();
                $("#lifefileList").find("#WU_FILE_3").fadeOut();
                $("#lifefileList").find("#WU_FILE_4").fadeOut();
                $("#lifefileList").find("#WU_FILE_5").fadeOut();
                $("#lifefileList").find("#WU_FILE_6").fadeOut();
                $("#lifefileList").find("#WU_FILE_7").fadeOut();

                var $li = $(
                    '<div id="' + file.id + '" class="item">' +
                    '<div class="pic-box"><img></div>'+
                    '</div>'
                    ),
                    $img = $li.find('img');
                $('#lifefileList').append($li);

                // 创建缩略图
                // 如果为非图片文件，可以不用调用此方法。
                // thumbnailWidth x thumbnailHeight 为 100 x 100
                lifeuploader.makeThumb( file, function( error, src ) {
                    if ( error ) {
                        $img.replaceWith('<span>不能预览</span>');
                        return;
                    }
                    $img.attr( 'src', src );
                }, 110 * (window.devicePixelRatio || 1), 110 * (window.devicePixelRatio || 1) );

                $( '#'+file.id ).find('.progress-box').fadeOut();
            });
            lifeuploader.on('all', function (type) {
                if (type === 'startUpload') {
                    lifestate = 'uploading';
                } else if (type === 'stopUpload') {
                    lifestate = 'paused';
                } else if (type === 'uploadFinished') {
                    lifestate = 'done';
                }

                if (lifestate === 'uploading') {
                    $btn.text('暂停上传');
                } else {
                    $btn.text('开始上传');
                }
            });
            //--------------------------------------------------身份证上传-----------------------
            idcardpicstate = "pending",

                idcardpicuploader = WebUploader.create({
                    auto: true,
                    swf: '/lib/webuploader/0.1.5/Uploader.swf',

                    // 文件接收服务端。
                    server: '/fileUpload/',

                    // 选择文件的按钮。可选。
                    // 内部根据当前运行是创建，可能是input元素，也可能是flash.
                    pick: '#idcardpicPicker',

                    // 不压缩image, 默认如果是jpeg，文件上传前会压缩一把再上传！
                    resize: false,
                    // 只允许选择图片文件。
                    accept: {
                        title: 'Images',
                        extensions: 'gif,jpg,jpeg,bmp,png',
                        mimeTypes: 'image/*'
                    }
                });
            idcardpicuploader.on( 'fileQueued', function( file ) {

            });
            // 文件上传过程中创建进度条实时显示。
            idcardpicuploader.on( 'uploadProgress', function( file, percentage ) {
                var $li = $( '#'+file.id ),
                    $percent = $li.find('.progress-box .sr-only');

                // 避免重复创建
                if ( !$percent.length ) {
                    $percent = $('<div class="progress-box"><span class="progress-bar radius"><span class="sr-only" style="width:0%"></span></span></div>').appendTo( $li ).find('.sr-only');
                }
                $li.find(".state").text("上传中");
                $percent.css( 'width', percentage * 100 + '%' );
            });

            // 文件上传成功，给item添加成功class, 用样式标记上传成功。
            idcardpicuploader.on( 'uploadSuccess', function( file ,response) {
                console.log("服务端返回url:"+response._raw);
                $('#idcardpic').val(response._raw);
                $( '#'+file.id ).addClass('upload-state-success').find(".state").text("");
            });

            // 文件上传失败，显示上传出错。
            idcardpicuploader.on( 'uploadError', function( file ) {
                $( '#'+file.id ).addClass('upload-state-error').find(".state").text("上传出错");
            });

            // 完成上传完了，成功或者失败，先删除进度条。
            idcardpicuploader.on( 'uploadComplete', function( file ) {
                $("#idcarpicoldimg").fadeOut();
                $("#idcardpicList").find("#WU_FILE_0").fadeOut();
                $("#idcardpicList").find("#WU_FILE_1").fadeOut();
                $("#idcardpicList").find("#WU_FILE_2").fadeOut();
                $("#idcardpicList").find("#WU_FILE_3").fadeOut();
                $("#idcardpicList").find("#WU_FILE_4").fadeOut();
                $("#idcardpicList").find("#WU_FILE_5").fadeOut();
                $("#idcardpicList").find("#WU_FILE_6").fadeOut();
                $("#idcardpicList").find("#WU_FILE_7").fadeOut();

                var $li = $(
                    '<div id="' + file.id + '" class="item">' +
                    '<div class="pic-box"><img></div>'+
                    '</div>'
                    ),
                    $img = $li.find('img');
                $('#idcardpicList').append($li);

                // 创建缩略图
                // 如果为非图片文件，可以不用调用此方法。
                // thumbnailWidth x thumbnailHeight 为 100 x 100
                idcardpicuploader.makeThumb( file, function( error, src ) {
                    if ( error ) {
                        $img.replaceWith('<span>不能预览</span>');
                        return;
                    }
                    $img.attr( 'src', src );
                }, 110 * (window.devicePixelRatio || 1), 110 * (window.devicePixelRatio || 1) );



                $( '#'+file.id ).find('.progress-box').fadeOut();
            });
            idcardpicuploader.on('all', function (type) {
                if (type === 'startUpload') {
                    idcardpicstate = 'uploading';
                } else if (type === 'stopUpload') {
                    idcardpicstate = 'paused';
                } else if (type === 'uploadFinished') {
                    idcardpicstate = 'done';
                }

                if (idcardpicstate === 'uploading') {
                    $btn.text('暂停上传');
                } else {
                    $btn.text('开始上传');
                }
            });
            //证书图片初始化------------------------------------------------------------------------
            certificatestate = "pending",
                certificateuploader = WebUploader.create({
                    auto: true,
                    swf: '/lib/webuploader/0.1.5/Uploader.swf',

                    // 文件接收服务端。
                    server: '/fileUpload/',

                    // 选择文件的按钮。可选。
                    // 内部根据当前运行是创建，可能是input元素，也可能是flash.
                    pick: '#certificateFilePicker',

                    // 不压缩image, 默认如果是jpeg，文件上传前会压缩一把再上传！
                    resize: false,
                    // 只允许选择图片文件。
                    accept: {
                        title: 'Images',
                        extensions: 'gif,jpg,jpeg,bmp,png',
                        mimeTypes: 'image/*'
                    }
                });
            certificateuploader.on( 'fileQueued', function( file ) {

            });
            // 文件上传过程中创建进度条实时显示。
            certificateuploader.on( 'uploadProgress', function( file, percentage ) {
                var $li = $( '#'+file.id ),
                    $percent = $li.find('.progress-box .sr-only');

                // 避免重复创建
                if ( !$percent.length ) {
                    $percent = $('<div class="progress-box"><span class="progress-bar radius"><span class="sr-only" style="width:0%"></span></span></div>').appendTo( $li ).find('.sr-only');
                }
                $li.find(".state").text("上传中");
                $percent.css( 'width', percentage * 100 + '%' );
            });

            // 文件上传成功，给item添加成功class, 用样式标记上传成功。
            certificateuploader.on( 'uploadSuccess', function( file ,response) {
                console.log("服务端返回url:"+response._raw);
                $('#certificatepic').val(response._raw);
                $( '#'+file.id ).addClass('upload-state-success').find(".state").text("");
            });

            // 文件上传失败，显示上传出错。
            certificateuploader.on( 'uploadError', function( file ) {
                $( '#'+file.id ).addClass('upload-state-error').find(".state").text("上传出错");
            });

            // 完成上传完了，成功或者失败，先删除进度条。
            certificateuploader.on( 'uploadComplete', function( file ) {
                $("#certificatepicoldimg").fadeOut();
                $("#certificateFileList").find("#WU_FILE_0").fadeOut();
                $("#certificateFileList").find("#WU_FILE_1").fadeOut();
                $("#certificateFileList").find("#WU_FILE_2").fadeOut();
                $("#certificateFileList").find("#WU_FILE_3").fadeOut();
                $("#certificateFileList").find("#WU_FILE_4").fadeOut();
                $("#certificateFileList").find("#WU_FILE_5").fadeOut();
                $("#certificateFileList").find("#WU_FILE_6").fadeOut();
                $("#certificateFileList").find("#WU_FILE_7").fadeOut();

                var $li = $(
                    '<div id="' + file.id + '" class="item">' +
                    '<div class="pic-box"><img></div>'+
                    '</div>'
                    ),
                    $img = $li.find('img');
                $('#certificateFileList').append($li);

                // 创建缩略图
                // 如果为非图片文件，可以不用调用此方法。
                // thumbnailWidth x thumbnailHeight 为 100 x 100
                certificateuploader.makeThumb( file, function( error, src ) {
                    if ( error ) {
                        $img.replaceWith('<span>不能预览</span>');
                        return;
                    }
                    $img.attr( 'src', src );
                }, 110 * (window.devicePixelRatio || 1), 110 * (window.devicePixelRatio || 1) );

                $( '#'+file.id ).find('.progress-box').fadeOut();
            });
            certificateuploader.on('all', function (type) {
                if (type === 'startUpload') {
                    certificatestate = 'uploading';
                } else if (type === 'stopUpload') {
                    certificatestate = 'paused';
                } else if (type === 'uploadFinished') {
                    certificatestate = 'done';
                }

                if (certificatestate === 'uploading') {
                    $btn.text('暂停上传');
                } else {
                    $btn.text('开始上传');
                }
            });
        });
        function selectByHouseKeeperId(){
        }
        function close_layer() {
            window.parent.location.reload();
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        };
        /*工作经历-添加*/
        function workexPerience_add(){
            var htmlstr=""

			var worktimestart=$('#worktimestart').val();
            var worktimeend=$('#worktimeend').val();
            var content=$('#content').val();

            if(worktimestart!=""&&worktimeend!=""&&content!=""){
                htmlstr += '<tr class="text-c">'+
                    '<td>'+worktimestart+'</td>'+
                    '<td>'+worktimeend+'</td>'+
                    '<td>'+content+'</td>';

                htmlstr += '<td class="f-14 td-manage">';

                htmlstr += '<a style="text-decoration:none" class="ml-5" onClick="workexPerience_del('+"this"+',\''+1+'\');" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>';
                htmlstr += '</td>'+
                    '</tr>';
                $("#worktData-list").append(htmlstr);

                $('#worktimestart').val('');
                $('#worktimeend').val('');
                $('#content').val('');

                $("#worktData").val(getTabArray('#worktData-list'));
			}

        }
        /*培训经历-添加*/
        function trainExperience_add(){
            var htmlstr=""

            var traintimestart=$('#traintimestart').val();
            var traintimeend=$('#traintimeend').val();
            var curriculumname=$('#curriculumname').val();
            var traininginstitution=$('#traininginstitution').val();
            var traincontent=$('#traincontent').val();
            var checkandevaluate=$('#checkandevaluate').val();

            if(traintimestart!=""&&traintimeend!=""&&curriculumname!=""&&traininginstitution!=""&&traincontent!=""){
                htmlstr += '<tr class="text-c">'+
                    '<td>'+curriculumname+'</td>'+
                    '<td>'+traintimestart+'</td>'+
                    '<td>'+traintimeend+'</td>'+

                    '<td>'+traininginstitution+'</td>'+
                    '<td>'+traincontent+'</td>'+
                    '<td>'+checkandevaluate+'</td>';

                htmlstr += '<td class="f-14 td-manage">';

                htmlstr += '<a style="text-decoration:none" class="ml-5" onClick="trainExperience_del('+"this"+',\''+1+'\');" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>';
                htmlstr += '</td>'+
                    '</tr>';
                $("#trainData-list").append(htmlstr);

                $('#traintimestart').val('');
               	$('#traintimeend').val('');
                $('#curriculumname').val('');
                $('#traininginstitution').val('');
                $('#traincontent').val('');
                $('#checkandevaluate').val('');
                $("#trainData").val(getTrainTabArray('#trainData-list'));
            }



        }
        /*紧急联系人-添加*/
        function emergency_add(){
            var htmlstr=""

            var emergencyname=$('#emergencyname').val();
            var emergencyphone=$('#emergencyphone').val();

            if(emergencyname!=""&&emergencyphone!=""){
                htmlstr += '<tr class="text-c">'+
                    '<td>'+emergencyname+'</td>'+
                    '<td>'+emergencyphone+'</td>';

                htmlstr += '<td class="f-14 td-manage">';

                htmlstr += '<a style="text-decoration:none" class="ml-5" onClick="emergency_del('+"this"+',\''+1+'\');" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>';
                htmlstr += '</td>'+
                    '</tr>';
                $("#emergencyData-list").append(htmlstr);
                $('#emergencyname').val('');
                $('#emergencyphone').val('');
                $("#emergencyData").val(getEmergencyTabArray('#emergencyData-list'));
            }



        }

        /*证书添加-添加*/
        function certificate_add(){
            var htmlstr=""

            var certificatename=$('#certificatename').val();
            var certificatepic=$('#certificatepic').val();

            if(certificatename!=""&&certificatepic!=""){
                htmlstr += '<tr class="text-c">'+
                    '<td>'+certificatename+'</td>'+
                    '<td class="visible-print-block">'+certificatepic+'</td>'+
                    '<td>'+'<img src="'+certificatepic+'"width="100px;" height="100px;"/>'+'</td>';


                htmlstr += '<td class="f-14 td-manage">';

                htmlstr += '<a style="text-decoration:none" class="ml-5" onClick="certificate_del('+"this"+',\''+1+'\');" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>';
                htmlstr += '</td>'+
                    '</tr>';
                $("#certificateData-list").append(htmlstr);
                $('#certificatename').val('');
                $('#certificatepic').val('');
                $("#certificateFileList").find("#WU_FILE_0").fadeOut();
                $("#certificateFileList").find("#WU_FILE_1").fadeOut();
                $("#certificateFileList").find("#WU_FILE_2").fadeOut();
                $("#certificateFileList").find("#WU_FILE_3").fadeOut();
                $("#certificateFileList").find("#WU_FILE_4").fadeOut();
                $("#certificateFileList").find("#WU_FILE_5").fadeOut();
                $("#certificateFileList").find("#WU_FILE_6").fadeOut();
                $("#certificateFileList").find("#WU_FILE_7").fadeOut();
                $("#certificateData").val(getCertificateTabArray('#certificateData-list'));
            }



        }
        /*工作经历-删除*/
        function workexPerience_del(obj,id){
            layer.confirm('确认要删除吗？',function(index){
                $(obj).parents("tr").remove();
                $("#worktData").val(getTabArray('#worktData-list'));
                layer.msg('已删除!',{icon:1,time:1000});
            });
        }
        /*紧急联系人-删除*/
        function emergency_del(obj,id){
            layer.confirm('确认要删除吗？',function(index){
                $(obj).parents("tr").remove();
                $("#emergencyData").val(getEmergencyTabArray('#emergencyData-list'));
                layer.msg('已删除!',{icon:1,time:1000});
            });
        }
        /*培训-删除*/
        function trainExperience_del(obj,id){
            layer.confirm('确认要删除吗？',function(index){
                $(obj).parents("tr").remove();
                $("#trainData").val(getTrainTabArray('#trainData-list'));
                layer.msg('已删除!',{icon:1,time:1000});
            });
        }
        /*证书-删除*/
        function certificate_del(obj,id){
            layer.confirm('确认要删除吗？',function(index){
                $(obj).parents("tr").remove();
                $("#certificateData").val(getCertificateTabArray('#certificateData-list'));
                layer.msg('已删除!',{icon:1,time:1000});
            });
        }
        //工作经历 获取table内容并转成二维数组（支持colspan和rowspan）
        function getTabArray(tabId) {
            var data = [];
            if ($(tabId + ' tr').length == 0) {
                return data;
            }
            //填充数组
            $(tabId + ' tr').each(function () {
                var arr = [];
                $(this).children('th,td').each(function () {
                    arr.push($(this).text().trim());
                });
                data.push(arr);
            });
            //二次填充
            var yIndex = 0;
            $(tabId + ' tr').each(function () {
                var xIndex = 0;
                $(this).children('th,td').each(function () {
                    var t_yIndex = 0;


                    for (var i = 1, len = t_yIndex; i < len; i++) {
                        var arr = data[yIndex + i];
                        arr.splice(xIndex, 0, '');
                    }
                        xIndex++;
                });
                yIndex++;
            });
			var arr = new Array();
            for (var i = 0; i < data.length; i++) {
                arr.push({'worktimestart':data[i][0],'worktimeend':data[i][1],'content':data[i][2]});
            }
            arr = JSON.stringify(arr); // 转json字符串
            console.log("arr==="+arr);
            return arr;
        }
        //培训 获取table内容并转成二维数组（支持colspan和rowspan）
        function getTrainTabArray(tabId) {
            var data = [];
            if ($(tabId + ' tr').length == 0) {
                return data;
            }
            //填充数组
            $(tabId + ' tr').each(function () {
                var arr = [];
                $(this).children('th,td').each(function () {
                    arr.push($(this).text().trim());
                });
                data.push(arr);
            });
            //二次填充
            var yIndex = 0;
            $(tabId + ' tr').each(function () {
                var xIndex = 0;
                $(this).children('th,td').each(function () {
                    var t_yIndex = 0;


                    for (var i = 1, len = t_yIndex; i < len; i++) {
                        var arr = data[yIndex + i];
                        arr.splice(xIndex, 0, '');
                    }
                    xIndex++;
                });
                yIndex++;
            });
            var arr = new Array();
            for (var i = 0; i < data.length; i++) {
                arr.push({'traintimestart':data[i][1],'traintimeend':data[i][2],'curriculumname':data[i][0],'traininginstitution':data[i][3],'traincontent':data[i][4],'checkandevaluate':data[i][5]});
            }
            arr = JSON.stringify(arr); // 转json字符串
            console.log("arr==="+arr);
            return arr;
        }
        //紧急联系人 获取table内容并转成二维数组（支持colspan和rowspan）
        function getEmergencyTabArray(tabId) {
            var data = [];
            if ($(tabId + ' tr').length == 0) {
                return data;
            }
            //填充数组
            $(tabId + ' tr').each(function () {
                var arr = [];
                $(this).children('th,td').each(function () {
                    arr.push($(this).text().trim());
                });
                data.push(arr);
            });
            //二次填充
            var yIndex = 0;
            $(tabId + ' tr').each(function () {
                var xIndex = 0;
                $(this).children('th,td').each(function () {
                    var t_yIndex = 0;


                    for (var i = 1, len = t_yIndex; i < len; i++) {
                        var arr = data[yIndex + i];
                        arr.splice(xIndex, 0, '');
                    }
                    xIndex++;
                });
                yIndex++;
            });
            var arr = new Array();
            for (var i = 0; i < data.length; i++) {
                arr.push({'emergencyname':data[i][0],'emergencyphone':data[i][1]});
            }
            arr = JSON.stringify(arr); // 转json字符串
            console.log("arr==="+arr);
            return arr;
        }

        //证书 获取table内容并转成二维数组（支持colspan和rowspan）
        function getCertificateTabArray(tabId) {
            var data = [];
            if ($(tabId + ' tr').length == 0) {
                return data;
            }
            //填充数组
            $(tabId + ' tr').each(function () {
                var arr = [];
                $(this).children('th,td').each(function () {
                    arr.push($(this).text().trim());
                });
                data.push(arr);
            });
            //二次填充
            var yIndex = 0;
            $(tabId + ' tr').each(function () {
                var xIndex = 0;
                $(this).children('th,td').each(function () {
                    var t_yIndex = 0;


                    for (var i = 1, len = t_yIndex; i < len; i++) {
                        var arr = data[yIndex + i];
                        arr.splice(xIndex, 0, '');
                    }
                    xIndex++;
                });
                yIndex++;
            });
            var arr = new Array();
            for (var i = 0; i < data.length; i++) {
                arr.push({'certificatename':data[i][0],'certificatepic':data[i][1]});
            }
            arr = JSON.stringify(arr); // 转json字符串
            console.log("arr==="+arr);
            return arr;
        }


	</script>
	<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
